Intersoft ClientUI Documentation
LazyResolve<TType>(String) Method



The type to be resolved.
The name of the registration for type TType.
Gets a function that resolves a named instance of the type TType. This function delays the creation of types which is useful to improve performance particularly when the specified type allocates expensive resources.
Syntax
Overloads Function LazyResolve(Of TType As Class)( _
   ByVal name As String _
) As Func(Of TType)
Dim instance As IDependencyResolver
Dim name As String
Dim value As Func(Of TType)
 
value = instance.LazyResolve(Of TType)(name)
Func<TType> LazyResolve<TType>( 
   string name
)
where TType: class
Func<TType^>^ LazyResolvegeneric<typename TType>
( 
   String^ name
) 
where TType: ref class

Parameters

name
The name of the registration for type TType.

Type Parameters

TType
The type to be resolved.

Return Value

An instance of the function delegate which is registered to resolve the type TType.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDependencyResolver Interface
IDependencyResolver Members
Overload List

Send Feedback